package per.wxp.eureka_feign.service;

import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import per.wxp.eureka_feign.entity.UserVo;

@Component
public class ComputeClientHystrix implements ComputeClient {
	@Override
	public Integer add(@RequestParam(value = "a") Integer a,
			@RequestParam(value = "b") Integer b) {
		return -9999;
	}

	@Override
	public String hello() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	@RequestMapping(value = "/user", method = RequestMethod.GET)
	public String helloParam(@RequestBody UserVo user) {
		// TODO Auto-generated method stub
		return user.toString();
	}
}
